package com.example.ndktest;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // 调用JNI调用静态方法返回一个字符串
//        Log.d("TestNDK", JNIHelper.getStringFromNative());

        Button btnSimple = findViewById(R.id.btn_simple);
        btnSimple.setOnClickListener(view -> {
            Intent intent = new Intent(this, SimpleActivity.class);
            startActivity(intent);
        });

        Button btnOrder = findViewById(R.id.btn_order);
        btnOrder.setOnClickListener(view -> {
            Intent intent = new Intent(this, OrderActivity.class);
            startActivity(intent);
        });

    }

}
